.class Lcom/estrongs/android/view/d0$g;
.super Ljava/lang/Object;
.source "RemoteGridViewWrapper.java"

# interfaces
.implements Lcom/estrongs/android/ftp/c$b;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/estrongs/android/view/d0;->j(Z)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic a:Lcom/estrongs/android/ftp/c;

.field final synthetic b:Ljava/lang/String;

.field final synthetic c:Ljava/lang/String;

.field final synthetic d:I

.field final synthetic e:Ljava/lang/String;

.field final synthetic f:Lcom/estrongs/android/view/d0;


# direct methods
.method constructor <init>(Lcom/estrongs/android/view/d0;Lcom/estrongs/android/ftp/c;Ljava/lang/String;Ljava/lang/String;ILjava/lang/String;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/estrongs/android/view/d0$g;->f:Lcom/estrongs/android/view/d0;

    iput-object p2, p0, Lcom/estrongs/android/view/d0$g;->a:Lcom/estrongs/android/ftp/c;

    iput-object p3, p0, Lcom/estrongs/android/view/d0$g;->b:Ljava/lang/String;

    iput-object p4, p0, Lcom/estrongs/android/view/d0$g;->c:Ljava/lang/String;

    iput p5, p0, Lcom/estrongs/android/view/d0$g;->d:I

    iput-object p6, p0, Lcom/estrongs/android/view/d0$g;->e:Ljava/lang/String;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onConnected()V
    .locals 7

    .line 1
    :try_start_0
    iget-object v0, p0, Lcom/estrongs/android/view/d0$g;->a:Lcom/estrongs/android/ftp/c;

    iget-object v1, p0, Lcom/estrongs/android/view/d0$g;->b:Ljava/lang/String;

    iget-object v2, p0, Lcom/estrongs/android/view/d0$g;->c:Ljava/lang/String;

    iget v3, p0, Lcom/estrongs/android/view/d0$g;->d:I

    iget-object v4, p0, Lcom/estrongs/android/view/d0$g;->e:Ljava/lang/String;

    invoke-virtual {v0, v1, v2, v3, v4}, Lcom/estrongs/android/ftp/c;->a(Ljava/lang/String;Ljava/lang/String;ILjava/lang/String;)Lcom/estrongs/android/ftp/a;

    move-result-object v0

    .line 2
    iget-object v1, p0, Lcom/estrongs/android/view/d0$g;->a:Lcom/estrongs/android/ftp/c;

    invoke-virtual {v1}, Lcom/estrongs/android/ftp/c;->e()I

    move-result v1

    const v2, 0x7f1105f3

    const v3, 0x7f1108df

    if-nez v1, :cond_3

    .line 3
    iget-object v1, p0, Lcom/estrongs/android/view/d0$g;->f:Lcom/estrongs/android/view/d0;

    invoke-static {v1}, Lcom/estrongs/android/view/d0;->b(Lcom/estrongs/android/view/d0;)Z

    move-result v1
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    const-string v4, "/"

    const-string v5, ":"

    const-string v6, "ftp:/"

    if-eqz v1, :cond_0

    .line 4
    :try_start_1
    iget-object v1, p0, Lcom/estrongs/android/view/d0$g;->f:Lcom/estrongs/android/view/d0;

    iget-object v2, p0, Lcom/estrongs/android/view/d0$g;->f:Lcom/estrongs/android/view/d0;

    invoke-virtual {v2, v3}, Lcom/estrongs/android/view/h0;->c(I)Ljava/lang/String;

    move-result-object v2

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v3, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Lcom/estrongs/android/ftp/a;->d()Ljava/net/InetAddress;

    move-result-object v0

    invoke-virtual {v0}, Ljava/net/InetAddress;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget v0, p0, Lcom/estrongs/android/view/d0$g;->d:I

    invoke-virtual {v3, v0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v1, v2, v0}, Lcom/estrongs/android/view/d0;->a(Lcom/estrongs/android/view/d0;Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_0

    .line 5
    :cond_0
    iget-object v1, p0, Lcom/estrongs/android/view/d0$g;->f:Lcom/estrongs/android/view/d0;

    invoke-static {v1}, Lcom/estrongs/android/view/d0;->d(Lcom/estrongs/android/view/d0;)Z

    move-result v1

    if-eqz v1, :cond_1

    .line 6
    iget-object v1, p0, Lcom/estrongs/android/view/d0$g;->f:Lcom/estrongs/android/view/d0;

    iget-object v3, p0, Lcom/estrongs/android/view/d0$g;->f:Lcom/estrongs/android/view/d0;

    invoke-virtual {v3, v2}, Lcom/estrongs/android/view/h0;->c(I)Ljava/lang/String;

    move-result-object v2

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v3, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Lcom/estrongs/android/ftp/a;->d()Ljava/net/InetAddress;

    move-result-object v0

    invoke-virtual {v0}, Ljava/net/InetAddress;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget v0, p0, Lcom/estrongs/android/view/d0$g;->d:I

    invoke-virtual {v3, v0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v1, v2, v0}, Lcom/estrongs/android/view/d0;->a(Lcom/estrongs/android/view/d0;Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_0

    .line 7
    :cond_1
    iget-object v1, p0, Lcom/estrongs/android/view/d0$g;->f:Lcom/estrongs/android/view/d0;

    iget-object v2, p0, Lcom/estrongs/android/view/d0$g;->f:Lcom/estrongs/android/view/d0;

    invoke-static {v2}, Lcom/estrongs/android/view/d0;->e(Lcom/estrongs/android/view/d0;)Ljava/lang/String;

    move-result-object v2

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v3, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Lcom/estrongs/android/ftp/a;->d()Ljava/net/InetAddress;

    move-result-object v0

    invoke-virtual {v0}, Ljava/net/InetAddress;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget v0, p0, Lcom/estrongs/android/view/d0$g;->d:I

    invoke-virtual {v3, v0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v1, v2, v0}, Lcom/estrongs/android/view/d0;->a(Lcom/estrongs/android/view/d0;Ljava/lang/String;Ljava/lang/String;)V

    .line 8
    :goto_0
    new-instance v0, Landroid/content/Intent;

    iget-object v1, p0, Lcom/estrongs/android/view/d0$g;->f:Lcom/estrongs/android/view/d0;

    iget-object v1, v1, Lcom/estrongs/android/view/h0;->a:Landroid/content/Context;

    const-class v2, Lcom/estrongs/android/ftp/ESFtpService;

    invoke-direct {v0, v1, v2}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 9
    sget v1, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v2, 0x1a

    if-lt v1, v2, :cond_2

    .line 10
    iget-object v1, p0, Lcom/estrongs/android/view/d0$g;->f:Lcom/estrongs/android/view/d0;

    iget-object v1, v1, Lcom/estrongs/android/view/h0;->a:Landroid/content/Context;

    invoke-virtual {v1, v0}, Landroid/content/Context;->startForegroundService(Landroid/content/Intent;)Landroid/content/ComponentName;

    goto :goto_2

    .line 11
    :cond_2
    iget-object v1, p0, Lcom/estrongs/android/view/d0$g;->f:Lcom/estrongs/android/view/d0;

    iget-object v1, v1, Lcom/estrongs/android/view/h0;->a:Landroid/content/Context;

    invoke-virtual {v1, v0}, Landroid/content/Context;->startService(Landroid/content/Intent;)Landroid/content/ComponentName;

    goto :goto_2

    :cond_3
    const/4 v0, 0x0

    const/4 v4, 0x1

    if-ne v1, v4, :cond_4

    .line 12
    iget-object v0, p0, Lcom/estrongs/android/view/d0$g;->f:Lcom/estrongs/android/view/d0;

    const v1, 0x7f11047e

    invoke-virtual {v0, v1}, Lcom/estrongs/android/view/h0;->c(I)Ljava/lang/String;

    move-result-object v0

    goto :goto_1

    :cond_4
    const/4 v4, 0x2

    if-ne v1, v4, :cond_5

    .line 13
    iget-object v0, p0, Lcom/estrongs/android/view/d0$g;->f:Lcom/estrongs/android/view/d0;

    const v1, 0x7f110b78

    invoke-virtual {v0, v1}, Lcom/estrongs/android/view/h0;->c(I)Ljava/lang/String;

    move-result-object v0

    .line 14
    :cond_5
    :goto_1
    iget-object v1, p0, Lcom/estrongs/android/view/d0$g;->f:Lcom/estrongs/android/view/d0;

    iget-object v1, v1, Lcom/estrongs/android/view/h0;->a:Landroid/content/Context;

    const/4 v4, 0x0

    invoke-static {v1, v0, v4}, Lcom/estrongs/android/ui/view/d;->a(Landroid/content/Context;Ljava/lang/CharSequence;I)V

    .line 15
    iget-object v0, p0, Lcom/estrongs/android/view/d0$g;->f:Lcom/estrongs/android/view/d0;

    invoke-static {v0}, Lcom/estrongs/android/view/d0;->b(Lcom/estrongs/android/view/d0;)Z

    move-result v0

    if-eqz v0, :cond_6

    .line 16
    iget-object v0, p0, Lcom/estrongs/android/view/d0$g;->f:Lcom/estrongs/android/view/d0;

    iget-object v1, p0, Lcom/estrongs/android/view/d0$g;->f:Lcom/estrongs/android/view/d0;

    invoke-virtual {v1, v3}, Lcom/estrongs/android/view/h0;->c(I)Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/estrongs/android/view/d0;->a(Lcom/estrongs/android/view/d0;Ljava/lang/String;)V

    goto :goto_2

    .line 17
    :cond_6
    iget-object v0, p0, Lcom/estrongs/android/view/d0$g;->f:Lcom/estrongs/android/view/d0;

    invoke-static {v0}, Lcom/estrongs/android/view/d0;->d(Lcom/estrongs/android/view/d0;)Z

    move-result v0

    if-eqz v0, :cond_7

    .line 18
    iget-object v0, p0, Lcom/estrongs/android/view/d0$g;->f:Lcom/estrongs/android/view/d0;

    iget-object v1, p0, Lcom/estrongs/android/view/d0$g;->f:Lcom/estrongs/android/view/d0;

    invoke-virtual {v1, v2}, Lcom/estrongs/android/view/h0;->c(I)Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/estrongs/android/view/d0;->a(Lcom/estrongs/android/view/d0;Ljava/lang/String;)V

    goto :goto_2

    .line 19
    :cond_7
    iget-object v0, p0, Lcom/estrongs/android/view/d0$g;->f:Lcom/estrongs/android/view/d0;

    iget-object v1, p0, Lcom/estrongs/android/view/d0$g;->f:Lcom/estrongs/android/view/d0;

    invoke-static {v1}, Lcom/estrongs/android/view/d0;->e(Lcom/estrongs/android/view/d0;)Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/estrongs/android/view/d0;->a(Lcom/estrongs/android/view/d0;Ljava/lang/String;)V

    .line 20
    :goto_2
    iget-object v0, p0, Lcom/estrongs/android/view/d0$g;->a:Lcom/estrongs/android/ftp/c;

    iget-object v1, p0, Lcom/estrongs/android/view/d0$g;->f:Lcom/estrongs/android/view/d0;

    iget-object v1, v1, Lcom/estrongs/android/view/h0;->a:Landroid/content/Context;

    invoke-virtual {v0, v1}, Lcom/estrongs/android/ftp/c;->a(Landroid/content/Context;)V
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0

    goto :goto_3

    :catch_0
    move-exception v0

    .line 21
    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V

    :goto_3
    return-void
.end method
